package com.rxkj.entity.rainwater;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 站点信息实体类
 * by alex
 * 2022-4-6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("station")
@ApiModel("站点信息实体类")
public class StationInfo implements Serializable {

    @TableId
    @ApiModelProperty(value = "测站编码")
    private String stcd;

    @ApiModelProperty(value = "单独用于闸门编号-暂设")
    private String stcdcode;

    @ApiModelProperty(value = "测站名称")
    private String stnm;

    @ApiModelProperty(value = "限汛水位")
    private Double xunxian;

    @ApiModelProperty(value = "总库容")
    private Double kurong;

    @ApiModelProperty(value = "排序id")
    private Integer orderid;

    @ApiModelProperty(value = "所属行政区域代码")
    private String addvcd;

    @ApiModelProperty(value = "组织、业主id")
    private Integer gid;

    @ApiModelProperty(value = "站点图标")
    private String sticon;

    @ApiModelProperty(value = "站点图标")
    private String stimage;

    @ApiModelProperty(value = "测站类型id")
    private Integer tid;

    @ApiModelProperty(value = "测站主体设备型号id")
    private Integer eid;

    @ApiModelProperty(value = "测站地址")
    private String location;

    @ApiModelProperty(value = "地址")
    private String locationx;

    @ApiModelProperty(value = "流域")
    private String basin;

    @ApiModelProperty(value = "经度")
    private BigDecimal lgt;

    @ApiModelProperty(value = "纬度")
    private BigDecimal lat;

    @ApiModelProperty(value = "设备状态：0-设备离线；1-设备在线；2-设备休眠；3-设备升级中；")
    private Integer status;

    @ApiModelProperty(value = "是否包含摄像头:0:否；1：是")
    private Integer iscamera;

    @ApiModelProperty(value = "摄像头类型code")
    private String cameraType;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更改时间")
    private Date updatetime;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后一次上线时间")
    private Date lastonline;

    @ApiModelProperty(value = "负责人")
    private String workername;

    @ApiModelProperty(value = "负责人电话")
    private String workerphone;

    @ApiModelProperty(value = "通信模式（0：GPRS;1：北斗通信;2:光纤,局域网）")
    private Integer commode;

    @ApiModelProperty(value = "是否启用0否，1是")
    private Integer enabled;

    @ApiModelProperty(value = "备注")
    private String mark;

    @ApiModelProperty(value = "电池电压")
    private Double voltage;

    @ApiModelProperty(value = "通信信号强度")
    private Double signalInten;


    //------------------------------
    @ApiModelProperty(value = "X方向初始值")
    private Double v1;

    @ApiModelProperty(value = "Y方向初始值")
    private Double v2;

    @ApiModelProperty(value = "Z方向初始值")
    private Double v3;

    @ApiModelProperty(value = "断面id")
    private String sectionId;

    @ApiModelProperty(value = "断面")
    private String sectionName;

    @ApiModelProperty(value = "主测点设备id")
    private String mainDeviceId;

    @ApiModelProperty(value = "主测点设备名称")
    private String mainDeviceName;

}
